package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * 文章(HmArticles)实体类
 *
 * @author makejava
 * @since 2022-01-09 19:13:48
 */
@TableName("hm_articles")
@Data
public class HmArticles implements Serializable {
    private static final long serialVersionUID = 526125941193772389L;
    /**
     * 编号
     */
    private Integer id;
    /**
     * 标题
     */
    private String title;
    /**
     * 文章正文
     */
    @TableField(value = "articleBody")
    private String articleBody;
    /**
     * 视频地址
     */
    @TableField(value = "videoURL")
    private String videoURL;
    /**
     * 阅读数
     */
    private Integer visits;
    /**
     * 状态
     */
    private Integer state;

    @TableField(value = "createTime")
    private Date createTime;
    /*
     * 录入人
     */
    private Integer creatorid;

    //录入人
    @TableField(exist = false)
    private String username;



    @Override
    public String toString() {
        return "HmArticles{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", articlebody='" + articleBody + '\'' +
                ", videourl='" + videoURL + '\'' +
                ", visits=" + visits +
                ", state=" + state +
                ", createtime=" + createTime +
                ", creatorid=" + creatorid +
                ", username='" + username + '\'' +
                '}';
    }
}

